

#app {
  .my_menu_list {
    transition: min-width 0.28s;
    min-width: $sideBarWidth;
    -webkit-transition: min-width 0.28s;
    -moz-transition: min-width 0.28s;
    -ms-transition: min-width 0.28s;
    -o-transition: min-width 0.28s;

    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
      -webkit-transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
      -moz-transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
      -ms-transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
      -o-transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
}

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }


    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }
  }

  .hideSidebar {
    min-width: 54px;

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 20px !important;
        display: flex !important;
        align-items: center;
        text-align: center;
      }
    }

    .el-submenu {
      overflow-x: hidden;

      &.is-active {
        position: relative;

        &::after {
          content: '';
          position: absolute;
          left: 0;
          top: 0;
          width: 4px;
          height: 100%;
          background: #be2a37;
        }

        &>.el-submenu__title {
          background-color: #f8e9eb !important;
        }
      }



      &>.el-submenu__title {
        // padding: 20px 0 0 0 !important;
        display: flex;
        align-items: center;
        // vertical-align: middle;

        .el-submenu__icon-arrow {
          display: none;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .my_menu_list {
      transition: transform .28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .my_menu_list {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .my_menu_list {
      transition: none;
    }
  }

  .openSidebar {
    width: $left-nav-width;
    overflow: hidden;
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 16px;
    }

    .my_icon {
      margin-right: 15px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
    &:hover {
      // background-color: $menuHover !important;
      color: #1a74cd;
    }
  }

  &>.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}